<style>
    .table > tbody > tr > td, .table > thead > tr > th {
        text-align: center;
        vertical-align: middle;
    }
    table > tbody > tr:nth-child(odd){
        background: #f9f9f9;
    }
</style>

<div class="box box-solid no-margin box-show">
    <div class="box-body">
        <h4>日志列表</h4>
        <div class="box-body table-responsive no-padding">
            <table class="table">
                <thead>
                <tr>
                    <th>操作人</th>
                    <th>类型</th>
                    <th>内容</th>
                    <th>时间</th>
                </tr>
                </thead>
                <tbody>
                @foreach($logs as $item)
                    <tr>
                        <td>{{ \App\Util\User::getUsernameById($item->user_id) }}</td>
                        <td>{{ \App\Models\Sys\Logs::$_type[$item->type] }}</td>
                        <td>{!! nl2br($item->content) !!}</td>
                        <td>{{ $item->created_at }}</td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>
